﻿using System;
using System.Collections.Generic;
using System.Text;

namespace _06继承与多态案例
{
    class Pistol : Weapon
    {
        string starlevel;
        public Pistol(string name, int magCa, int ammo, float rate, float attackRange) : base(name, magCa, ammo, rate, attackRange)
        {
        }

        public override void Fire()
        {
            base.Fire();
        }

        public override void PrintWeaponStatus()
        {
            base.PrintWeaponStatus();
            Console.WriteLine("武器星级："+starlevel);
        }
    }
}
